home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / aclocal-1.5 / dmalloc.m4 < prev    next >
Encoding:
M4 Source File  |  2005-10-16  |  644 b   |  23 lines

  1. ## ----------------------------------- ##
  2. ## Check if --with-dmalloc was given.  ##
  3. ## From Franc,ois Pinard               ##
  4. ## ----------------------------------- ##
  5.  
  6. # serial 1
  7.  
  8. AC_DEFUN([AM_WITH_DMALLOC],
  9. [AC_MSG_CHECKING([if malloc debugging is wanted])
  10. AC_ARG_WITH(dmalloc,
  11. [  --with-dmalloc          use dmalloc, as in
  12.                           http://www.dmalloc.com/dmalloc.tar.gz],
  13. [if test "$withval" = yes; then
  14.   AC_MSG_RESULT(yes)
  15.   AC_DEFINE(WITH_DMALLOC,1,
  16.             [Define if using the dmalloc debugging malloc package])
  17.   LIBS="$LIBS -ldmalloc"
  18.   LDFLAGS="$LDFLAGS -g"
  19. else
  20.   AC_MSG_RESULT(no)
  21. fi], [AC_MSG_RESULT(no)])
  22. ])
  23.